import service from '/@/utils/request';


/**
 *
 * 登录api接口集合
 * @method login 用户登录
 * @method logout 用户退出登录
 */
export const loginApi = {
    login: (data: LoginParam) => {
        return service.post<string, LoginParam>('/admin/user/login', data);
    },
    logout: () => {
        return service.post('/admin/user/logout');
    },
}